package org.example.demo01.entity;

import jakarta.persistence.*;
import java.time.LocalDateTime;

@Entity
@Table(name = "dispatch")
public class Dispatch {
    @Id
    private String id;

    @Column(name = "pieid")
    private String pieid;

    @Column(name = "wsid")
    private String wsid;

    @Column(name = "qid")
    private String qid;

    @Column(name = "status")
    private Integer status;

    @Column(name = "startingtime")
    private String startingtime;

    @Column(name = "endtime")
    private String endtime;
    public Dispatch() {
    }
    // 状态常量
    public static final int WAITING = 1;     // 等待加工
    public static final int PROCESSING = 2;  // 正在加工
    public static final int FINISHED = 3;    // 加工完成
    public static final int PAUSED = 4;      // 已暂停
    // Getter和Setter方法
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getPieid() {
        return pieid;
    }

    public void setPieid(String pieid) {
        this.pieid = pieid;
    }

    public String getWsid() {
        return wsid;
    }

    public void setWsid(String wsid) {
        this.wsid = wsid;
    }

    public String getQid() {
        return qid;
    }

    public void setQid(String qid) {
        this.qid = qid;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getStartingtime() {
        return startingtime;
    }

    public void setStartingtime(String startingtime) {
        this.startingtime = startingtime;
    }

    public String getEndtime() {
        return endtime;
    }

    public void setEndtime(String endtime) {
        this.endtime = endtime;
    }

}